package com.han.spring.core.annotation_di;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.han.spring.core.container_extension.Post;

/**
* @author hanpeng
* @version 创建时间：2020年7月8日 上午9:16:50
* @ClassName 类名称
* @Description 类描述
*/
public class AnnotationDiTest {
	@Test
	public void beanPostProcessorTest() {
		ApplicationContext context = new ClassPathXmlApplicationContext("annotation_di.xml");
		House house = context.getBean("house", House.class);
		System.out.println(house.getHan());
		System.out.println(house.getMap().get("han"));
		System.out.println(house.getContext());
	}
}
